domctl: don't truncate XEN_DOMCTL_max_mem requests
authorJan Beulich <jbeulich@suse.com>
Tue, 5 May 2015 16:00:03 +0000 (18:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 5 May 2015 16:00:03 +0000 (18:00 +0200)
commit017e667c433a1040306db6265b05e104568c70c8
tree644b1f8d945fad12a4d5db21a9b07d7f6a619a06
parentb4c6f400893328d38d03f053d7edaacf9200658e
domctl: don't truncate XEN_DOMCTL_max_mem requests

Instead saturate the value if the input can't be represented in the
respective struct domain field.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/common/domctl.c